package eteam.aps.model.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import eteam.aps.common.entity.PageQuery;
import eteam.aps.common.entity.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDate;

/**
 * @author Ll
 * @since 2024/1/9
 */
@ApiModel(value = "销售单查询条件", description = "销售单查询条件")
public class SaleQueryDto extends PageQuery {

    @ApiModelProperty("单号")
    private String orderNumber;

    @ApiModelProperty("客户编码")
    private String customerCode;

    @ApiModelProperty("单据开始日期")
    private LocalDate startTime;

    @ApiModelProperty("单据结束日期")
    private LocalDate endTime;

    @ApiModelProperty("经办人")
    private String handlerPeople;

    @ApiModelProperty("物流单号")
    private String logisticsCode;

    @JsonIgnore
    private final Integer state = ParentEntity.FSTATE_DELETED;


    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getCustomerCode() {
        return customerCode;
    }

    public void setCustomerCode(String customerCode) {
        this.customerCode = customerCode;
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }

    public String getHandlerPeople() {
        return handlerPeople;
    }

    public void setHandlerPeople(String handlerPeople) {
        this.handlerPeople = handlerPeople;
    }

    public String getLogisticsCode() {
        return logisticsCode;
    }

    public void setLogisticsCode(String logisticsCode) {
        this.logisticsCode = logisticsCode;
    }

    public Integer getState() {
        return state;
    }
}
